<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>合约详情 - 寻找摄影伙伴</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #f0f9ff;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            box-shadow: var(--shadow);
            background-color: white;
        }
        
        .container {
            padding: 2rem 0;
        }
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--primary);
            display: inline-block;
        }
        
        /* 合约详情样式 */
        .contract-detail {
            background-color: white;
            border-radius: 0.75rem;
            box-shadow: var(--shadow);
            overflow: hidden;
            margin-bottom: 2rem;
        }
        
        .contract-header {
            padding: 1.5rem;
            border-bottom: 1px solid var(--border);
        }
        
        .contract-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }
        
        .author-section {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .author-avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primary-light);
        }
        
        .author-info {
            flex: 1;
        }
        
        .author-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
        }
        
        .author-meta {
            color: var(--secondary);
            font-size: 0.9rem;
        }
        
        .author-verified {
            color: var(--primary);
            margin-left: 0.5rem;
        }
        
        .contract-actions {
            display: flex;
            gap: 1rem;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1.25rem;
            border-radius: 0.5rem;
            font-weight: 500;
            transition: all 0.2s;
        }
        
        .primary-btn {
            background-color: var(--primary);
            color: white;
            border: none;
        }
        
        .primary-btn:hover {
            background-color: #4338ca;
        }
        
        .secondary-btn {
            background-color: white;
            color: var(--primary);
            border: 1px solid var(--primary);
        }
        
        .secondary-btn:hover {
            background-color: var(--primary-light);
        }
        
        .icon-btn {
            background: none;
            border: none;
            color: var(--secondary);
            padding: 0.5rem;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .icon-btn:hover {
            background-color: var(--primary-light);
            color: var(--primary);
        }
        
        .icon-btn.active {
            color: var(--danger);
        }
        
        .contract-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 0.5rem;
            padding: 0 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .gallery-item {
            height: 200px;
            border-radius: 0.5rem;
            overflow: hidden;
            cursor: pointer;
            position: relative;
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }
        
        .gallery-item:hover img {
            transform: scale(1.05);
        }
        
        .gallery-more {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
        }
        
        .contract-content {
            padding: 0 1.5rem 1.5rem;
        }
        
        .contract-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border);
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--secondary);
        }
        
        .meta-item i {
            color: var(--primary);
        }
        
        .contract-description {
            margin-bottom: 1.5rem;
            line-height: 1.8;
        }
        
        .contract-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }
        
        .contract-tag {
            background-color: var(--primary-light);
            color: var(--primary);
            padding: 0.375rem 0.75rem;
            border-radius: 999px;
            font-size: 0.875rem;
        }
        
        /* 留言区样式 */
        .comments-section {
            background-color: white;
            border-radius: 0.75rem;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .comments-title {
            font-size: 1.25rem;
            font-weight: 600;
        }
        
        .comments-count {
            color: var(--secondary);
            font-size: 0.9rem;
        }
        
        .comment-form {
            margin-bottom: 2rem;
        }
        
        .form-group {
            margin-bottom: 1rem;
        }
        
        .form-control {
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            padding: 0.75rem 1rem;
            font-size: 1rem;
            transition: border-color 0.2s;
        }
        
        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
            outline: none;
        }
        
        .form-actions {
            display: flex;
            justify-content: flex-end;
        }
        
        .comment-list {
            margin-bottom: 2rem;
        }
        
        .comment-item {
            padding: 1rem 0;
            border-bottom: 1px solid var(--border);
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.75rem;
        }
        
        .comment-author {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 500;
        }
        
        .comment-time {
            color: var(--secondary);
            font-size: 0.875rem;
        }
        
        .comment-content {
            margin-bottom: 0.75rem;
        }
        
        .comment-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.875rem;
        }
        
        .comment-action {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            color: var(--secondary);
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        .reply-form {
            margin-top: 1rem;
            margin-bottom: 1rem;
            padding: 1rem;
            background-color: var(--light);
            border-radius: 0.5rem;
        }
        
        .reply-list {
            margin-left: 2.5rem;
            margin-top: 1rem;
        }
        
        .reply-item {
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border);
        }
        
        .load-more {
            text-align: center;
            margin-top: 1rem;
        }
        
        .load-more-btn {
            background: none;
            border: 1px solid var(--border);
            color: var(--primary);
            padding: 0.5rem 1.5rem;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .load-more-btn:hover {
            background-color: var(--primary-light);
            border-color: var(--primary);
        }
        
        /* 相关推荐 */
        .related-contracts {
            margin-top: 3rem;
        }
        
        .related-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        
        .related-card {
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .related-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .related-image {
            height: 160px;
            width: 100%;
            object-fit: cover;
        }
        
        .related-content {
            padding: 1rem;
        }
        
        .related-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .related-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.875rem;
            color: var(--secondary);
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .contract-actions {
                flex-wrap: wrap;
            }
            
            .action-btn {
                flex: 1;
                justify-content: center;
            }
            
            .contract-gallery {
                grid-template-columns: 1fr;
            }
            
            .reply-list {
                margin-left: 1rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-handshake text-primary me-2"></i>合约社交
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">合约交友</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">安全中心</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">帮助指南</a>
                    </li>
                </ul>
                <div class="d-flex align-items-center gap-3">
                    <button class="btn btn-outline-primary">登录</button>
                    <button class="btn btn-primary">注册</button>
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主要内容区 -->
    <div class="container">
        <div class="row">
            <div class="col-lg-8">
                <!-- 合约详情 -->
                <div class="contract-detail">
                    <div class="contract-header">
                        <h1 class="contract-title">寻找摄影伙伴 - 周末户外采风</h1>
                        
                        <div class="author-section">
                            <img src="https://picsum.photos/200/200?random=1" alt="李明的头像" class="author-avatar">
                            <div class="author-info">
                                <div class="d-flex align-items-center">
                                    <span class="author-name">李明</span>
                                    <i class="fas fa-check-circle author-verified" title="已认证用户"></i>
                                </div>
                                <div class="author-meta">
                                    <span>28岁 · 北京</span>
                                    <span class="mx-2">|</span>
                                    <span>发布于 3天前</span>
                                </div>
                            </div>
                            <div class="contract-actions">
                                <button class="action-btn primary-btn">
                                    <i class="fas fa-comment-dots"></i> 联系TA
                                </button>
                                <button class="action-btn secondary-btn">
                                    <i class="fas fa-share-alt"></i> 分享
                                </button>
                                <button class="icon-btn" id="likeBtn">
                                    <i class="fas fa-heart"></i>
                                </button>
                                <button class="icon-btn" id="bookmarkBtn">
                                    <i class="fas fa-bookmark"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="contract-gallery">
                        <div class="gallery-item">
                            <img src="https://picsum.photos/600/400?random=10" alt="摄影作品示例1">
                        </div>
                        <div class="gallery-item">
                            <img src="https://picsum.photos/600/400?random=11" alt="摄影作品示例2">
                        </div>
                        <div class="gallery-item">
                            <img src="https://picsum.photos/600/400?random=12" alt="摄影作品示例3">
                        </div>
                        <div class="gallery-item">
                            <img src="https://picsum.photos/600/400?random=13" alt="摄影作品示例4">
                            <div class="gallery-more">+3 张照片</div>
                        </div>
                    </div>
                    
                    <div class="contract-content">
                        <div class="contract-meta">
                            <div class="meta-item">
                                <i class="fas fa-tag"></i>
                                <span>兴趣伙伴</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>北京</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-calendar-alt"></i>
                                <span>每周六、日</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-user-friends"></i>
                                <span>已加入 5 人</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-eye"></i>
                                <span>328 浏览</span>
                            </div>
                            <div class="meta-item">
                                <i class="fas fa-heart"></i>
                                <span id="likeCount">86 喜欢</span>
                            </div>
                        </div>
                        
                        <div class="contract-description">
                            <h3>关于这次活动</h3>
                            <p>本人是一名摄影爱好者，有5年摄影经验，主要擅长风光摄影和城市建筑摄影。希望寻找几位志同道合的摄影伙伴，一起在周末外出采风。</p>
                            <p>我们可以互相学习交流摄影技巧，分享拍摄心得，共同进步。每次活动地点会提前一周在群里通知，一般会选择风景优美或有特色建筑的地方。</p>
                            
                            <h3>期望的伙伴</h3>
                            <p>1. 有一定摄影基础，热爱摄影</p>
                            <p>2. 有自己的摄影设备（单反/微单均可）</p>
                            <p>3. 能坚持参加活动，不无故缺席</p>
                            <p>4. 性格开朗，善于交流分享</p>
                            
                            <h3>活动详情</h3>
                            <p>时间：每周六或周日，具体时间群内协商</p>
                            <p>费用：AA制（交通、门票等）</p>
                            <p>方式：线下活动，每次拍摄结束后可小聚交流</p>
                            
                            <p>有意向的朋友请联系我，备注"摄影伙伴"，我会拉你进群。期待与各位摄影爱好者一起创作！</p>
                        </div>
                        
                        <div class="contract-tags">
                            <span class="contract-tag">摄影</span>
                            <span class="contract-tag">户外活动</span>
                            <span class="contract-tag">周末</span>
                            <span class="contract-tag">北京</span>
                            <span class="contract-tag">兴趣小组</span>
                            <span class="contract-tag">艺术</span>
                        </div>
                    </div>
                </div>
                
                <!-- 留言区 -->
                <div class="comments-section">
                    <div class="comments-header">
                        <h3 class="comments-title">留言板</h3>
                        <span class="comments-count">42 条留言</span>
                    </div>
                    
                    <div class="comment-form">
                        <div class="form-group">
                            <textarea class="form-control" rows="4" placeholder="写下你的留言..."></textarea>
                        </div>
                        <div class="form-actions">
                            <button class="btn btn-primary">发布留言</button>
                        </div>
                    </div>
                    
                    <div class="comment-list">
                        <!-- 留言1 -->
                        <div class="comment-item">
                            <div class="comment-header">
                                <div class="comment-author">
                                    <img src="https://picsum.photos/100/100?random=20" alt="王小红的头像" class="comment-avatar">
                                    <div>
                                        <div class="author-name">王小红</div>
                                        <div class="comment-time">2天前</div>
                                    </div>
                                </div>
                            </div>
                            <div class="comment-content">
                                <p>你好！我也是摄影爱好者，主要拍人像和风景，有佳能R6相机，想加入你们的活动可以吗？</p>
                            </div>
                            <div class="comment-actions">
                                <div class="comment-action reply-btn">
                                    <i class="fas fa-reply"></i> 回复
                                </div>
                                <div class="comment-action like-comment-btn">
                                    <i class="fas fa-heart"></i> 12
                                </div>
                            </div>
                            
                            <!-- 回复框 (默认隐藏) -->
                            <div class="reply-form" style="display: none;">
                                <div class="form-group">
                                    <textarea class="form-control" rows="2" placeholder="回复 @王小红..."></textarea>
                                </div>
                                <div class="form-actions">
                                    <button class="btn btn-sm btn-outline-secondary me-2 cancel-reply">取消</button>
                                    <button class="btn btn-sm btn-primary">回复</button>
                                </div>
                            </div>
                            
                            <!-- 回复列表 -->
                            <div class="reply-list">
                                <div class="reply-item">
                                    <div class="comment-header">
                                        <div class="comment-author">
                                            <img src="https://picsum.photos/100/100?random=1" alt="李明的头像" class="comment-avatar">
                                            <div>
                                                <div class="author-name">李明 <span class="badge bg-primary-light text-primary">作者</span></div>
                                                <div class="comment-time">2天前</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="comment-content">
                                        <p>@王小红 可以的，欢迎加入！请联系我，我拉你进群~</p>
                                    </div>
                                    <div class="comment-actions">
                                        <div class="comment-action reply-btn">
                                            <i class="fas fa-reply"></i> 回复
                                        </div>
                                        <div class="comment-action like-comment-btn">
                                            <i class="fas fa-heart"></i> 3
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 留言2 -->
                        <div class="comment-item">
                            <div class="comment-header">
                                <div class="comment-author">
                                    <img src="https://picsum.photos/100/100?random=21" alt="张伟的头像" class="comment-avatar">
                                    <div>
                                        <div class="author-name">张伟</div>
                                        <div class="comment-time">1天前</div>
                                    </div>
                                </div>
                            </div>
                            <div class="comment-content">
                                <p>上周参加了你们的活动，拍了很多好照片，谢谢组织！下次活动什么时候？</p>
                            </div>
                            <div class="comment-actions">
                                <div class="comment-action reply-btn">
                                    <i class="fas fa-reply"></i> 回复
                                </div>
                                <div class="comment-action like-comment-btn">
                                    <i class="fas fa-heart"></i> 8
                                </div>
                            </div>
                            
                            <!-- 回复列表 -->
                            <div class="reply-list">
                                <div class="reply-item">
                                    <div class="comment-header">
                                        <div class="comment-author">
                                            <img src="https://picsum.photos/100/100?random=1" alt="李明的头像" class="comment-avatar">
                                            <div>
                                                <div class="author-name">李明 <span class="badge bg-primary-light text-primary">作者</span></div>
                                                <div class="comment-time">1天前</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="comment-content">
                                        <p>@张伟 不客气！下次活动定在本周日，去颐和园拍摄，具体时间群里会通知~</p>
                                    </div>
                                    <div class="comment-actions">
                                        <div class="comment-action reply-btn">
                                            <i class="fas fa-reply"></i> 回复
                                        </div>
                                        <div class="comment-action like-comment-btn">
                                            <i class="fas fa-heart"></i> 2
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 留言3 -->
                        <div class="comment-item">
                            <div class="comment-header">
                                <div class="comment-author">
                                    <img src="https://picsum.photos/100/100?random=22" alt="刘芳的头像" class="comment-avatar">
                                    <div>
                                        <div class="author-name">刘芳</div>
                                        <div class="comment-time">12小时前</div>
                                    </div>
                                </div>
                            </div>
                            <div class="comment-content">
                                <p>我是摄影新手，只有一台入门级单反，可以加入学习吗？</p>
                            </div>
                            <div class="comment-actions">
                                <div class="comment-action reply-btn">
                                    <i class="fas fa-reply"></i> 回复
                                </div>
                                <div class="comment-action like-comment-btn">
                                    <i class="fas fa-heart"></i> 5
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="load-more">
                        <button class="load-more-btn">加载更多留言</button>
                    </div>
                </div>
            </div>
            
            <div class="col-lg-4">
                <!-- 作者信息卡片 -->
                <div class="card mb-4">
                    <div class="card-body">
                        <h5 class="card-title mb-3">关于作者</h5>
                        <div class="text-center mb-3">
                            <img src="https://picsum.photos/200/200?random=1" alt="李明的头像" class="author-avatar mx-auto mb-2">
                            <h6 class="author-name">李明</h6>
                            <div class="author-meta">28岁 · 北京</div>
                            <div class="mt-2">
                                <span class="badge bg-primary-light text-primary">摄影爱好者</span>
                                <span class="badge bg-primary-light text-primary">自由职业</span>
                            </div>
                        </div>
                        <p class="text-center mb-3">喜欢用镜头记录生活中的美好瞬间，擅长风光和建筑摄影。</p>
                        <div class="d-grid">
                            <button class="btn btn-primary">
                                <i class="fas fa-user-plus"></i> 关注TA
                            </button>
                        </div>
                        <div class="d-flex justify-content-center gap-4 mt-3 text-center">
                            <div>
                                <div class="fw-bold">128</div>
                                <div class="text-sm text-secondary">关注</div>
                            </div>
                            <div>
                                <div class="fw-bold">356</div>
                                <div class="text-sm text-secondary">粉丝</div>
                            </div>
                            <div>
                                <div class="fw-bold">24</div>
                                <div class="text-sm text-secondary">发布</div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 合约信息卡片 -->
                <div class="card mb-4">
                    <div class="card-body">
                        <h5 class="card-title mb-3">合约信息</h5>
                        <ul class="list-group list-group-flush">
                            <li class="list-group-item d-flex justify-content-between">
                                <span class="text-secondary">合约类型</span>
                                <span>兴趣伙伴</span>
                            </li>
                            <li class="list-group-item d-flex justify-content-between">
                                <span class="text-secondary">活动地区</span>
                                <span>北京</span>
                            </li>
                            <li class="list-group-item d-flex justify-content-between">
                                <span class="text-secondary">活动频率</span>
                                <span>每周</span>
                            </li>
                            <li class="list-group-item d-flex justify-content-between">
                                <span class="text-secondary">活动方式</span>
                                <span>线下</span>
                            </li>
                            <li class="list-group-item d-flex justify-content-between">
                                <span class="text-secondary">开始时间</span>
                                <span>2023-06-15</span>
                            </li>
                            <li class="list-group-item d-flex justify-content-between">
                                <span class="text-secondary">预算范围</span>
                                <span>50-200元/次</span>
                            </li>
                            <li class="list-group-item d-flex justify-content-between">
                                <span class="text-secondary">已加入</span>
                                <span>5人</span>
                            </li>
                        </ul>
                    </div>
                </div>
                
                <!-- 举报卡片 -->
                <div class="card">
                    <div class="card-body">
                        <button class="btn btn-outline-danger w-100">
                            <i class="fas fa-exclamation-triangle"></i> 举报此合约
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 相关推荐 -->
        <div class="related-contracts">
            <h3 class="section-title">相关推荐</h3>
            <div class="related-list">
                <div class="related-card">
                    <img src="https://picsum.photos/600/400?random=30" alt="寻找读书会成员" class="related-image">
                    <div class="related-content">
                        <h5 class="related-title">寻找读书会成员 - 每月共读一本书</h5>
                        <div class="related-meta">
                            <span>陈静, 26岁</span>
                            <span><i class="fas fa-eye"></i> 412</span>
                        </div>
                    </div>
                </div>
                <div class="related-card">
                    <img src="https://picsum.photos/600/400?random=31" alt="周末徒步爱好者" class="related-image">
                    <div class="related-content">
                        <h5 class="related-title">周末徒步爱好者 - 寻找同行伙伴</h5>
                        <div class="related-meta">
                            <span>赵刚, 32岁</span>
                            <span><i class="fas fa-eye"></i> 289</span>
                        </div>
                    </div>
                </div>
                <div class="related-card">
                    <img src="https://picsum.photos/600/400?random=32" alt="城市探索小组" class="related-image">
                    <div class="related-content">
                        <h5 class="related-title">城市探索小组 - 发现城市之美</h5>
                        <div class="related-meta">
                            <span>林小, 24岁</span>
                            <span><i class="fas fa-eye"></i> 512</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 点赞功能
            const likeBtn = document.getElementById('likeBtn');
            const likeCount = document.getElementById('likeCount');
            let liked = false;
            let count = 86;
            
            likeBtn.addEventListener('click', function() {
                liked = !liked;
                
                if (liked) {
                    this.classList.add('active');
                    count++;
                } else {
                    this.classList.remove('active');
                    count--;
                }
                
                likeCount.textContent = `${count} 喜欢`;
            });
            
            // 收藏功能
            const bookmarkBtn = document.getElementById('bookmarkBtn');
            let bookmarked = false;
            
            bookmarkBtn.addEventListener('click', function() {
                bookmarked = !bookmarked;
                
                if (bookmarked) {
                    this.classList.add('active');
                } else {
                    this.classList.remove('active');
                }
            });
            
            // 留言回复功能
            const replyBtns = document.querySelectorAll('.reply-btn');
            const cancelReplyBtns = document.querySelectorAll('.cancel-reply');
            
            replyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    // 隐藏所有回复框
                    document.querySelectorAll('.reply-form').forEach(form => {
                        form.style.display = 'none';
                    });
                    
                    // 显示当前回复框
                    const replyForm = this.closest('.comment-item, .reply-item').querySelector('.reply-form');
                    if (replyForm) {
                        replyForm.style.display = 'block';
                        replyForm.querySelector('textarea').focus();
                    }
                });
            });
            
            cancelReplyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    this.closest('.reply-form').style.display = 'none';
                });
            });
            
            // 评论点赞功能
            const commentLikeBtns = document.querySelectorAll('.like-comment-btn');
            
            commentLikeBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const text = this.textContent.trim();
                    let count = parseInt(text.match(/\d+/)[0]);
                    
                    if (icon.classList.contains('fa-heart')) {
                        icon.classList.add('fas');
                        icon.classList.remove('far');
                        this.classList.add('active');
                        count++;
                    } else {
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('active');
                        count--;
                    }
                    
                    this.innerHTML = `<i class="${icon.classList.value}"></i> ${count}`;
                });
            });
            
            // 加载更多留言
            const loadMoreBtn = document.querySelector('.load-more-btn');
            loadMoreBtn.addEventListener('click', function() {
                this.innerHTML = '<i class="fas fa-spinner fa-spin"></i> 加载中...';
                
                // 模拟加载延迟
                setTimeout(() => {
                    this.innerHTML = '没有更多留言了';
                    this.disabled = true;
                    this.style.opacity = '0.7';
                }, 1500);
            });
        });
    </script>
</body>
</html>
    
